let fs = require('fs')


window.onload = function () {
  let btn = document.querySelector('#btn')

  btn.onclick = () => {
    fs.readFile('package.json', (err, res) => {
      let text = document.querySelector('#textarea')
      console.log(res)

      text.innerHTML = res
    })
  }
}